package cn.tedu.management.portal.mapper;

import cn.tedu.management.portal.model.Staff;
import cn.tedu.management.portal.vo.StaffLoginVO;
import cn.tedu.management.portal.vo.StaffUpdateVO;
import cn.tedu.management.portal.vo.StaffVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tedu.cn
 * @since 2020-12-08
 */
@Repository
public interface StaffMapper extends BaseMapper<Staff> {

    Staff findByPhone(String phone);

    StaffUpdateVO showUpdateById(Integer id);


    List<StaffVO> findByDeptId(Integer deptId);

    List<StaffVO> findAll();

    List<StaffVO> findByPId(Integer id);

    StaffLoginVO findStaffLoginVOByPhone(String phone);


}
